package com.chanct.test2;

public abstract class B extends A{
	protected String cc;
	protected SearchType dd;
	public B(String aa, String bb,String cc,SearchType dd) {
		super(aa, bb);
		this.cc = cc;
		this.dd = dd;
	}
	protected String trsConnection;
	public enum SearchType{
		/**
		 * 普通检索
		 */
		COMMON_SEARCH,
		/**
		 * 智能检索
		 */
		SEMANTIC_SEARCH
	}
	public void change(){
		switch(dd){
			case COMMON_SEARCH: 
				trsConnection="1";
				break;
			case SEMANTIC_SEARCH:
				trsConnection="2";
				break;
		}
			
	}
	
	public int search() throws Exception{
		this.change();
		return doSearch();
	}
}
